<?php
/**
 * @package WordPress
 * @subpackage SPC
 */

get_header(); ?>

	<div id="content">

		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

			<?php
				$content = get_the_content();
				$content = apply_filters('the_content', $content);
				$content = str_replace(']]>', ']]&gt;', $content);
			?>

			<div class="navbar">
				<?php
					$pages = wp_list_pages("child_of=".$post->ID."&depth=1&title_li=&echo=0");
					if(!$pages && $post->post_parent)
						$pages = wp_list_pages("child_of=".$post->post_parent."&depth=1&title_li=&echo=0");
					echo($pages);
				?>
			</div>

			<div class="post" id="post-<?php the_ID(); ?>">
				<div class="entry">

					<?php echo($content); ?>

					<p class="meta">This page was last updated on
						<?php the_modified_date(); ?> at <?php the_modified_time() ?></p>
					<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

				</div>
			</div>

		<?php endwhile; endif; ?>

	</div>

<?php get_footer(); ?>